/**
 * @param {number[]} arr
 * @param {number} k
 * @return {number[]}
 */
 var kthSmallestPrimeFraction = function(arr, k) {
    let newArr = []
    for(let i = 0; i < arr.length; i++) {
        for(let j = i+1; j < arr.length ;j++){
            newArr.push([arr[i],arr[j]])
        }
    }
    newArr.sort((a,b)=>a[0]*b[1] - b[0]*a[1])
    return newArr[k-1]
};
console.log(kthSmallestPrimeFraction([1,2,3,5],3))